export interface RequestWrapper<T> {
  code: number
  data: T
  msg: string
}

export interface Pagination {
  pageNum: number
  pageSize: number
}

export enum Mode {
  create,
  edit
}

export type WithTotalSize<T> = {
  [P in keyof T]: T[P]
} & {
  totalSize: number
}
